home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts13-11
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: revised derived class question
- Date: Wed, 20 Mar 96 06:19:23 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4io820$n9v@sam.inforamp.net>
- References: <314C5747.19D9@telis.org>
- NNTP-Posting-Host: ts34-09.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <314C5747.19D9@telis.org>, Kevin Wilson <kevinw@telis.org> wrote:
- >It wants a type conversion from Llist to Stack... Not sure how to do that and
- >I didnt think I had to for a derived class.
-
- change the following line in your program...
- ptr = Retreive(1);
- to...
- ptr = (Stack *) Retreive(1);
- The error should disappear.
-
- Agrivar
-
-
- Agrivar
-
- aka Randy Charles Morin
- MiddleWorld SoftWare
- Canada: 1-800-363-3780
- Other: 905-279-2087
-